package com.jiawa.train.business.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class TrainStationQueryResp {
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    private String trainCode;
    private Integer index;
    private String name;
    private String namePinyin;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime inTime;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime outTime;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime stopTime;
    private BigDecimal km;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
}
